﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework;

namespace BostonXNA.InputHandling.Input
{
    class MouseMoveActivity : InputActivity
    {
        public MouseMove Direction;

        public override bool Check(InputState state)
        {
            Vector2 movement;
            movement.X = state.Mouse.Current.X - state.Mouse.Previous.X; // - == Left
            movement.Y = state.Mouse.Current.Y - state.Mouse.Previous.Y; // - == Down
            if ((movement.X > 0 && Direction == MouseMove.Right)  // moving Right
                 || (movement.X < 0 && Direction == MouseMove.Left)  // moving Left
                 || (movement.Y < 0 && Direction == MouseMove.Up) // moving on Up
                 || (movement.Y > 0 && Direction == MouseMove.Down) // going Down (town) 
               )
            {
                return true;
            }
            return false;
        }
    }

    class MouseButtonDownActivity : InputActivity
    {
        Buttons Button;

        public override bool Check(InputState state)
        {
            return false;
        }
    }

    class MouseButtonUpActivity : InputActivity
    {
        Buttons Button;

        public override bool Check(InputState state)
        {
            return false;
        }
    }

}